<?php
namespace app\home\controller;

use think\Controller;
use think\Request;

class Listen extends Controller
{
    public function Index()
    {
        return view('home@home/Listen');
    }

    public function Music()
    {
        $request = Request::instance();
        $data = $request->param();
        foreach ($data as $v){
            $url = 'https://api.bzqll.com/music/netease/lrc?key=579621905&id='.$v;
        }
        $lrc = file_get_contents($url);
        return view('home@home/Music',[
            'list'=>$data,
            'lists'=>$lrc
        ]);
//        dump($request);
//        echo 11;die;
        return view('home@home/Music');

    }
}
